package f.h.dragon.util;

/**
 * This class implements the interface IStorage. see {@link IStorage}
 *
 * For example, the following method use it:
 *
 * <pre class=code>
 * public void someMethod(){
 * 		Storage s = Storage.malloc();
 * 		s.put(1, 11);
 * 		s.put("1", "22");
 * 		int i11 = s.get(1);//out: 11 --int
 * 		String s22 = s.get("1");//out:22 --String
 * }
 * </pre>
 * 
 * @author Wenlong Meng(wenlong.meng@gmail.com)
 * @version 1.0 at 2011/11/16
 * @since 1.0 
 */
public abstract class Storage implements IStorage {
	
	//create storage
	/**
	 * new storage
	 */
	public static IStorage malloc(){
		return new DefaultStorageImpl();
	}
}
